from libs.yuntongxun.sms import CCP
from celery_tasks.main import app
from verifications import contants


@app.task(name='send_sms_code')
def send_sms_code(mobile,sms_code):
    # 导入第三方云通讯
    ccp = CCP()
    # 根据实例对象发送
    ccp.send_template_sms('18694079593', ['sms_code', contants.ExpirationTime], contants.module)